/*
**  btmderc.h - header for resources
**  Copyright (C) 1999 Joachim Ott <ott@ardala.han.de>
**
**  This program is free software; you can redistribute it and/or modify
**  it under the terms of the GNU General Public License as published by
**  the Free Software Foundation; either version 2 of the License, or
**  (at your option) any later version.
**
**  This program is distributed in the hope that it will be useful,
**  but WITHOUT ANY WARRANTY; without even the implied warranty of
**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
**  GNU General Public License for more details.
**
**  You should have received a copy of the GNU General Public License
**  along with this program; if not, write to the Free Software
**  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#ifndef h_btmderc
#define h_btmderc

/*-----------------------------------------------------------------------*/

// Identifier fuer die Dialog-Items

#define LB_ERG			51

#define GOTO_ST			701

#define BTMDE_MENU		1000

#define M_D_SAVE		1001
#define M_D_SAVE_AS		1002
#define M_D_MISCHEN		1011
#define M_D_MSG			1021
#define M_D_END			1049

#define M_H_MAIN		1101
#define M_H_TN			1102
#define M_H_TIP			1103
#define M_H_MISCH		1104
#define M_H_INFO		1109

#define Y_SIZE			15	// Hoehe fuer buttons, Textzeilen etc
#define Y_SIZE_SMALL		(Y_SIZE - 5)

#define X_START			5
#define Y_START			5

#define X_DIFF			5
#define X_DIFF_2		X_DIFF + X_DIFF
#define Y_DIFF			5

// IDs im Hauptfenster

#define ID_LT_ANZAHL		2010	// LabelText "n Mitspieler n Tips"
#define ID_TN_LB		2011	// Listbox mit Namen der Mitspieler

#define ID_BN_MAIN_NEU		2091
#define ID_BN_MAIN_AENDERN	2092
#define ID_BN_MAIN_LOESCHEN	2093
#define ID_BN_MAIN_TIPS		2094

// Dialog "Namen eingeben"

#define DLG_GETNAME		2900
#define ID_GETNAME_LB		2901
#define ID_GETNAME_ET		2902

#define GETNAME_ITEM_SIZE	145
#define GETNAME_BTN_SIZE	70

#define GETNAME_LB_X		X_START
#define GETNAME_LB_Y		Y_START
#define GETNAME_LB_XS		GETNAME_ITEM_SIZE
#define GETNAME_LB_YS		Y_SIZE_SMALL			// YS fuer alle anderen controls

#define GETNAME_ET_X		X_START
#define GETNAME_ET_Y		GETNAME_LB_Y + Y_SIZE
#define GETNAME_ET_XS		GETNAME_ITEM_SIZE
#define GETNAME_ET_YS		GETNAME_LB_YS

#define GETNAME_OK_X		X_START
#define GETNAME_OK_Y		GETNAME_ET_Y + Y_SIZE
#define GETNAME_OK_XS		GETNAME_BTN_SIZE
#define GETNAME_OK_YS		Y_SIZE

#define GETNAME_CANCEL_X	GETNAME_OK_X + GETNAME_OK_XS + X_DIFF
#define GETNAME_CANCEL_Y	GETNAME_OK_Y
#define GETNAME_CANCEL_XS	GETNAME_OK_XS
#define GETNAME_CANCEL_YS	GETNAME_OK_YS

#define GETNAME_XS		GETNAME_ITEM_SIZE + X_START + X_START
#define GETNAME_YS		GETNAME_OK_Y + GETNAME_OK_YS + Y_START

// Dialog "Mitspielertips"

#define DLG_TIPS		2920
#define ID_TIPS_LT		2921
#define ID_TIPS_LB		2922
#define ID_TIPS_NEU		2923
#define ID_TIPS_AENDERN		2924
#define ID_TIPS_LOESCHEN	2925

#define TIPS_ITEM_SIZE		135
#define TIPS_BTN_SIZE		35	// 4 Buttons Neu Aendern Loeschen Ok
#define TIPS_BTN_SMALL		25	// Neu und Ok brauchen weniger Platz

#define TIPS_LT_X		X_START
#define TIPS_LT_Y		Y_START
#define TIPS_LT_XS		TIPS_ITEM_SIZE
#define TIPS_LT_YS		Y_SIZE			// YS fuer alle anderen controls

#define TIPS_LB_X		X_START
#define TIPS_LB_Y		TIPS_LT_Y + TIPS_LT_YS + Y_DIFF
#define TIPS_LB_XS		TIPS_ITEM_SIZE
#define TIPS_LB_YS		TIPS_LT_YS + TIPS_LT_YS + TIPS_LT_YS

#define TIPS_NEU_X		X_START
#define TIPS_NEU_Y		TIPS_LB_Y + TIPS_LB_YS + Y_DIFF
#define TIPS_NEU_XS		TIPS_BTN_SMALL
#define TIPS_NEU_YS		TIPS_LT_YS

#define TIPS_AENDERN_X		TIPS_NEU_X + TIPS_NEU_XS + X_DIFF
#define TIPS_AENDERN_Y		TIPS_NEU_Y
#define TIPS_AENDERN_XS		TIPS_BTN_SIZE
#define TIPS_AENDERN_YS		TIPS_LT_YS

#define TIPS_LOESCHEN_X		TIPS_AENDERN_X + TIPS_AENDERN_XS + X_DIFF
#define TIPS_LOESCHEN_Y		TIPS_NEU_Y
#define TIPS_LOESCHEN_XS	TIPS_BTN_SIZE
#define TIPS_LOESCHEN_YS	TIPS_LT_YS

#define TIPS_OK_X		TIPS_LOESCHEN_X + TIPS_LOESCHEN_XS + X_DIFF
#define TIPS_OK_Y		TIPS_NEU_Y
#define TIPS_OK_XS		TIPS_BTN_SMALL
#define TIPS_OK_YS		TIPS_LT_YS

#define TIPS_XS			TIPS_ITEM_SIZE + X_START + X_START
#define TIPS_YS			TIPS_NEU_Y + TIPS_NEU_YS + Y_START

// Dialog Tip (anzeigen)

#define DLG_TIP			2940
#define ID_TIP_TN		2941
#define ID_TIP_TIP		2942
#define ID_TIP_ST		2943

#define TIP_ITEM_SIZE		160
#define TIP_BTN_SIZE		25	// fuer den OK-Button

// Dialog neuen Tip eingeben

#define DLG_NEU			2970
#define ID_NEU_TZ_NAME		2971	// Name des Mitspielers
#define ID_NEU_LT		2972	// Label "Tipname:"
#define ID_NEU_ET		2973	// Tipname
#define ID_NEU_BN		2974	// der "rueckgangig" Button

#define ID_NEU_C1		3000	// Label- und Button-IDs fuer die 4 Spalten
#define ID_NEU_C2		(ID_NEU_C1 + N_TEAMS)
#define ID_NEU_C3		(ID_NEU_C2 + N_TEAMS)
#define ID_NEU_C4		(ID_NEU_C3 + N_TEAMS)

#define NEU_ITEM_SIZE		160
#define NEU_BTN_SIZE		80

#define NEU_C1_SIZE		120
#define NEU_C2_SIZE		30
#define NEU_C3_SIZE		NEU_C2_SIZE
#define NEU_C4_SIZE		NEU_C1_SIZE

// Dialog mischen

#define DLG_MISCH		4000
#define ID_MISCH_LTA		4001
#define ID_MISCH_LTN		4002

#define MISCH_ITEM_SIZE		110
#define MISCH_BTN_SIZE		50
#define MISCH_Y_SIZE		15

#define MISCH_LTA_X		X_START
#define MISCH_LTA_Y		Y_START
#define MISCH_LTA_XS		MISCH_ITEM_SIZE
#define MISCH_LTA_YS		MISCH_Y_SIZE

#define MISCH_LTN_X		MISCH_LTA_X 
#define MISCH_LTN_Y		(MISCH_LTA_Y + MISCH_LTA_YS + Y_DIFF)
#define MISCH_LTN_XS		MISCH_ITEM_SIZE
#define MISCH_LTN_YS		MISCH_Y_SIZE

#define MISCH_OK_X		MISCH_LTA_X 
#define MISCH_OK_Y		(MISCH_LTN_Y + MISCH_LTN_YS + Y_DIFF)
#define MISCH_OK_XS		MISCH_BTN_SIZE
#define MISCH_OK_YS		MISCH_Y_SIZE

#define MISCH_CAN_X		(MISCH_OK_X + MISCH_OK_XS + X_DIFF)
#define MISCH_CAN_Y		MISCH_OK_Y
#define MISCH_CAN_XS		MISCH_BTN_SIZE
#define MISCH_CAN_YS		MISCH_Y_SIZE

#define MISCH_XS		(X_START + MISCH_ITEM_SIZE + X_START)
#define MISCH_YS		(Y_START + MISCH_Y_SIZE + Y_DIFF + MISCH_Y_SIZE + Y_DIFF + MISCH_Y_SIZE + Y_START)

/*-----------------------------------------------------------------------*/

#endif /* h_btmderc */

/* btmderc.h */
